___________________________________________________________________________
Terminal Geometry
gnome-terminal --geometry 160x60+30+30

___________________________________________________________________________
Gemeinsamer Ordner in Linux Gastsystem
mount -t vboxsf [-o OPTIONS] sharename    mountpoint
-------------------------------------------------------
mount -t vboxsf              sharedfolder /sharedfolder
Und so geht's:
mount -t vboxsf sharedfolder /sharedfolder

=========================================================
Eintragen in /etc/fstab:
<name_of_share> /path/to/mountpoint vboxsf <options>  0 0
sharedfolder    /sharedfolder       vboxsf defaults   0 0

___________________________________________________________________________
Server rename
(as root)
vi /etc/sysconfig/network
HOSTNAME=<newname>

vi /etc/hosts
192.168.56.101  <newname> oracle1

___________________________________________________________________________
Recreate EM Repository
(as oracle)
emca -repos drop
emca -config dbcontrol db -repos create
emctl status dbconsole

___________________________________________________________________________
chkconfig
Updates and queries runlevel information for system services
chkconfig --add oracle-dbconsole

root@vboxhajo[217](/etc/init.d)# chkconfig | grep oracle
oracle-db       0:Aus   1:Aus   2:Ein   3:Ein   4:Aus   5:Ein   6:Aus
oracle-dbconsole        0:Aus   1:Aus   2:Ein   3:Ein   4:Aus   5:Ein   6:Aus

chkconfig --del oracle-dbconsole

root@vboxhajo[223](/etc/init.d)# chkconfig | grep oracle
oracle-db       0:Aus   1:Aus   2:Ein   3:Ein   4:Aus   5:Ein   6:Aus

___________________________________________________________________________
Oracle at Server Startup
- Check /var/log/boot.log
- Check /etc/rc.d/init.d/oracle-db (correct $ORACLE_HOME!)
- Check /etc/oratab (ORACLE_HOME entry is set to "Y")

___________________________________________________________________________
Assign network adapters

root@oracle[208](~)# ifconfig -a | grep -i hardware
eth4      Link encap:Ethernet  Hardware Adresse 08:00:27:3A:37:8D  
eth5      Link encap:Ethernet  Hardware Adresse 08:00:27:74:EB:6C  

root@oracle[215](/etc/udev/rules.d)# vi 70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:3a:37:8d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:74:eb:6c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

___________________________________________________________________________
Public key authentication with ssh
Server 1
oradgi2:ORCL:/home/oracle/.ssh$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/oracle/.ssh/id_dsa.
Your public key has been saved in /home/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
d5:e1:1d:c7:db:6a:a2:e7:e3:06:14:b9:a2:ca:84:58 oracle@oradgi2
The key's randomart image is:
+--[ DSA 1024]----+
|           .. ...|
|          oo o o.|
|          .oo . o|
|  E     ..o    ..|
| o .   .So     . |
|. . . .   . . o  |
|   o .     o o   |
|    o     . +    |
|           =o.   |
+-----------------+
oradgi2:ORCL:/home/oracle/.ssh$ ll
total 20
drwx------   2 oracle oinstall 4096 Nov 12 15:04 .
drwx------. 34 oracle oinstall 4096 Nov 12 14:28 ..
-rw-------   1 oracle oinstall  672 Nov 12 15:04 id_dsa
-rw-r--r--   1 oracle oinstall  604 Nov 12 15:04 id_dsa.pub
-rw-r--r--   1 oracle oinstall  404 Nov 11 17:05 known_hosts
oradgi2:ORCL:/home/oracle/.ssh$ scp id_dsa.pub oradgi1:/home/oracle/.ssh/id_dsa_oradgi2.pub
oracle@oradgi1's password:
id_dsa.pub                                    100%  604     0.6KB/s   00:00

Server 2
oradgi1:orcl:/home/oracle/.ssh$ cat id_dsa_oradgi2.pub >> authorized_keys

___________________________________________________________________________
Überschrift
Normaler Text
Courier New

___________________________________________________________________________
Überschrift
Normaler Text
Courier New

___________________________________________________________________________
Überschrift
Normaler Text
Courier New

___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________

Known Problems

Problem:
Maschine kann nicht hinzugefügt werden - Fall 1

Konnte die virtuelle Maschine in V:/VirtualBox/Oracle Enterprise Linux - ORADG1/Oracle Enterprise Linux - ORADG1.vbox nicht öffnen.

Cannot register the DVD image 'C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso' {4bb8dd93-41d5-42a2-a7e1-c6fa56edc43d} because a CD/DVD image 'C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso' with UUID {79942580-0536-4357-ba7f-5127af09b087} already exists.

Fehlercode:E_INVALIDARG (0x80070057)
Komponente:VirtualBox
Interface:IVirtualBox {c28be65f-1a8f-43b4-81f1-eb60cb516e66}

Solution:
- Save the machine's XML file (in the VB machine's folder) to a backup copy
- Open the machine's XML file (in the VB machine's folder) with notepad++
- Remove the entry referred above:

<DVDImages>
     <Image uuid="{4bb8dd93-41d5-42a2-a7e1-c6fa56edc43d}"
           location="C:/Program Files/Oracle/VirtualBox/VBoxGuestAdditions.iso"/>
</DVDImages>

___________________________________________________________________________
Problem:
Maschine kann nicht hinzugefügt werden - Fall 2

Konnte die virtuelle Maschine in G:/Virtual Box/Oracle Enterprise Linux - ORADG1/Oracle Enterprise Linux - ORADG1.vbox nicht öffnen.

Cannot register the hard disk 'G:\Virtual Box\Oracle Enterprise Linux - ORADG1\Oracle Enterprise Linux - ORADG1-disk3.vmdk' {8c77e22f-9c82-4f89-aa36-6a636f5f4622} because a hard disk 'G:\Virtual Box\Oracle Enterprise Linux - ORADG1\Oracle Enterprise Linux - ORADG1-disk3.vmdk' with UUID {c0e81e7c-a01b-4617-8b95-6c1e3cbd5a53} already exists.

Fehlercode:E_INVALIDARG (0x80070057)
Komponente:VirtualBox
Interface:IVirtualBox {3b2f08eb-b810-4715-bee0-bb06b9880ad2}

Solution:

___________________________________________________________________________
Problem:
"read" in new line

Using username "hruehl".
Authenticating with public key "rsa-key-20140827" from agent
Last login: Wed Oct 22 18:06:03 2014 from 192.168.56.1
Identifier?
hru

Solution:
echo -n "Identifier? " ; read OraIdent
echo "Identifier? \c" ; read OraIdent
echo "Identifier? " ; read OraIdent